package com.capgemini.teamtwo.common;

import lombok.Getter;

public enum ExceptionEnum {

    DUPLICATE_USER_ACCOUNT(1001, "用户账号已存在"),
    INSERT_EXCEPTION(1002,"新增字典产生未知异常"),
    LABLE_EXSITS_EXCEPTION(1003,"字典标签已存在异常"),
    DICT_NOT_EXSIT_EXCEPTIPN(1004,"字典不存在异常"),
    DELETE_EXCEPTION(1005,"删除时产生未知异常"),
    UPDATE_EXCEPTIOON(1006,"更新时产生未知异常"),
    SELECT_EXCEPTION(1007,"查询时产生未知异常"),
    EMPTY_EXCEPTION(1008,"信息不能为空"),
    PARAMETER_EMPTY(1004,"参数为空的异常"),
    LEADER_UNREALSE(2004,"leader不可被释放"),
    PROJEST_NOT_NULL(2005,"project_id不可为空"),
    SCHEDULE_EXCEPTION(3001,"实际不可大于计划异常"),
    NOTFOUND_USER_ACCOUNT(3002,"用户数据不存在"),
    NOTMATCH_USER_PASSWORD(3003,"用户密码错误"),
    PASSWORD_IS_NOT_EQUALS(3004,"两次密码不一致的异常"),
    PASSWORD_STRONG(3005,"密码不符合规范的异常"),
    DATA_EXCEPTION(3006,"日期重复异常"),
    USERNAME_IS_NOT_NULL(3008,"用户账号不可为空"),
    PASSWORD_IS_NOT_NULL(3007,"用户密码不可为空"),
    LEADER_NOTEMPTY_EXCEPTION(4001,"数据库内部记录残缺");




    @Getter
    private int code;

    @Getter
    private String message;

    ExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
